package instantmessenger;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface ChatServer extends Remote {

    public void addChatListener(Listener cl) throws RemoteException;
    public void removeChatListener(Listener cl) throws RemoteException;

    void sendMessage(String user, String message) throws RemoteException;
}

